package com.gs.synedocket.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.gs.synedocket.constant.EventCode;
import com.gs.synedocket.db.bean.Event;

import org.greenrobot.eventbus.EventBus;

public class NetworkBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        EventBus.getDefault().post(new Event(EventCode.EVENT_NETWORK_CHANGE));
    }
}
